package com.shelpe.services.sinbad;

import org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.ResourceHttpMessageConverter;

@Configuration
@Import(value = MultipartAutoConfiguration.class)
public class UploadConfiguration {

	@Bean
	public ResourceHttpMessageConverter resourceConverter(){
		ResourceHttpMessageConverter converter = new ResourceHttpMessageConverter();
		return converter;
	}
	
	@Bean
	public FormHttpMessageConverter formConverter(){
		FormHttpMessageConverter converter = new FormHttpMessageConverter();
		return converter;
	}
	
}
